home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / comm / tcp / TcpSpeed.lha / TcpSpeed.doc < prev    next >
Encoding:
Text File  |  2000-09-06  |  1.4 KB  |  39 lines

  1. The enclosed program can be used to measure the TCP throughput of a TCP
  2. channel between two machines.
  3.  
  4.  
  5. Usage:
  6.  
  7. On one machine start "tcpspeed s" (the server).
  8.  
  9. On the other machine start "tcpspeed c <hostname>", where <hostname> is the
  10. name of the machine running the server.
  11.  
  12. The client will received 20 MB of data from the server, and then calculate
  13. and display the throughput.
  14.  
  15.  
  16. Technical information:
  17.  
  18. An AmigaOS binary and the (reasonably portable) source code are are included.
  19. The port number and the amount of data transfered are adjustable.
  20.  
  21. If your OS uses old-style (BSD 4.2) sockaddr_in structures (as, e.g. Linux),
  22. then you need to comment out the line
  23. "#define HASSINLEN".
  24.  
  25. The program relies on the function "times()" to measure the elapsed time. In
  26. AmigaOS "clock()" is used instead, because sc.lib does not have "times()".
  27.  
  28. DO NOT use "clock()" in Unix, because in Unix that function measures used CPU
  29. time, not elapsed overall time. If your Unix dialect does not have "times()"
  30. then use some other function that measures elapsed time with an accuracy of
  31. at least 1 ms.
  32.  
  33. 05-09-2000 Addendum by Gian Maria "Giangi" Calzolari <gcalzo@geocities.com>
  34.            The source has been a bit changed by Simone "Wiz" Tellini
  35.            <wiz@vapor.com> to allow a Win32 compile. The new source and the
  36.            executable, tcpspeed.exe, are now included!
  37.            The original src is into "oldsrc"
  38.  
  39.